package com.codejam.mango.common;

import lombok.Data;

@Data
public class HttpResult {

    private int code = 200;

    private String msg;

    private Object data;

    public static HttpResult error() {
        return null;
    }

    public static HttpResult error(String msg) {
        return null;
    }

    public static HttpResult ok(String msg) {
        HttpResult t = new HttpResult();
//        t.setMsg(msg);
        return t;
    }

    public static HttpResult ok(Object data) {
        HttpResult t = new HttpResult();
//        t.setData(data);
        return t;
    }
}
